g_return_if_fail (node->pspec->value_type == value_type);
priv = props->priv;
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (!prop)
{
prop = property_data_new ();
- g_hash_table_insert (priv->properties,
- GINT_TO_POINTER (node->property_quark),
- prop);
+ g_hash_table_insert (priv->properties, node->pspec, prop);
}
val = property_data_get_value (prop, state);
break;
}
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (!prop)
{
prop = property_data_new ();
- g_hash_table_insert (priv->properties,
- GINT_TO_POINTER (node->property_quark),
- prop);
+ g_hash_table_insert (priv->properties, node->pspec, prop);
}
val = property_data_get_value (prop, state);
}
priv = props->priv;
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (!prop)
return NULL;
}
priv = props->priv;
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (!prop)
return FALSE;
break;
}
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (prop)
val = property_data_match_state (prop, state);
}
priv = props->priv;
- prop = g_hash_table_lookup (priv->properties,
- GINT_TO_POINTER (node->property_quark));
+ prop = g_hash_table_lookup (priv->properties, node->pspec);
if (!prop)
return;